package net.codeyouth.myblog.user.service;

import net.codeyouth.myblog.user.bean.User;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * @author Frank create on 2016/1/31 16:54
 */
@Service
public interface UserService {

  int insert(User user);

  User getByPrimaryKey(int id);

  User getByLoginName(String loginName);

  List<User> getList();

  List<User> getPage(int page, int pageSize);

  int updateByPrimaryKey(int id, Map<String, Object> params);

  int update(User user, Map<String, Object> params);

  int deleteByPrimaryKey(int... id);

}
